<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

require(APPPATH . 'core/admin.php');

class Privacy extends Admin
{
    public function getPage()
    {
        return 'privacy';
    }

    public function save()
    {
        $data = array(
            'nNumberOfRecords' => $_POST['numberOfRecords']
        );

        $this->db->where('nUserId', $this->session->userdata('userId'));
        $this->db->update('privacy', $data);

        redirect(site_url('privacy/index/common.ok'));
    }
}